const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    publicPath: process.env.NODE_ENV === 'production' ? './' : './',
    devServer: {

        host: "localhost",

        port: 8080,

        open: true, // 设置代理proxy

        proxy: {

            "/api": {

                target: "http://localhost:27859/",

                changeOrigin: true, //表示是否跨域，

                pathRewrite: {

                    //表示需要rewrite重写的

                    "^/api": "  ",

                },

            },

        },
    }

})